package com.guo.hui.controller;

import java.io.UnsupportedEncodingException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.guo.hui.service.CxfUtilService;

@Controller
@RequestMapping("tool")
public class ToolServerController {
	
	@Autowired
	private CxfUtilService utilService;

	@RequestMapping("index")
	public String index() {

		return "tool/index";
	}

	@ResponseBody
	@RequestMapping(value="phone",produces="text/html;charset=UTF-8")
	public String phone(String tel) {
		String msg = utilService.getMobileInfo(tel, "");
		return msg;
	}

}
